package com.darker.secking.service;

import com.darker.secking.entity.SeckingOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.darker.secking.entity.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author darker
 * @since 2022-10-06
 */
public interface ISeckingOrderService extends IService<SeckingOrder> {
    //根据用户Id查询订单
    SeckingOrder getSeckingOrderById(Long userId);

//    根据商品id和用户id查询订单是否存在
//成功->orderId， 失败->-1  ,排队中->0
    Long getResult(User user, Long goodsId);
}
